Bit
bit
is a library which provides some useful helpers for dealing with bits and
bit ranges. For now it's just a rewrite of
rust-bit-field
crate, but more
features are planned. Some of them could be:
- Support for arrays and slices.
bitflags
-like functionality.
Usage
Add to your Cargo.toml
:
[]
= "0.1"
And add to your code:
extern crate bit;
use BitIndex;
Example
extern crate bit;
use BitIndex;